/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class IndustrialDehumidifier {
    static categoryCode = '010030004';

    static categoryName = '工业除湿机';

    device = {};

    opts = {};

    _to = undefined;

    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device;
        this.opts = opts;
        this._to = to;
    }

    get categoryCode() {
        return IndustrialDehumidifier.categoryCode;
    }

    get categoryName() {
        return IndustrialDehumidifier.categoryName;
    }

    getCurrentHumidity(params) {
        return command({
            method: 'getCurrentHumidity',
            methodId: 'pgh0mqh3',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getCurrentTemp(params) {
        return command({
            method: 'getCurrentTemp',
            methodId: 'pDrhFbFV',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getHumidity(params) {
        return command({
            method: 'getHumidity',
            methodId: 'pGoxHGRL',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSwitch(params) {
        return command({
            method: 'getSwitch',
            methodId: 'p1vFjxxS',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getTemp(params) {
        return command({
            method: 'getTemp',
            methodId: 'pZgRT3nZ',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setHumidity(params) {
        return command({
            method: 'setHumidity',
            methodId: 'ppAXIOdr',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSwitch(params) {
        return command({
            method: 'setSwitch',
            methodId: 'pUPQ8jPd',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setTemp(params) {
        return command({
            method: 'setTemp',
            methodId: 'peH3nfJA',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default IndustrialDehumidifier;
